<div class="row"> <h3 class="page-header">分类管理<small><gt name='info.id' value='0'>/修改<else/>/添加</gt></small></h3></div>
<div class="row">
	<div class="panel panel-default">
		<div class="panel-body">
			<form id="myform" class="form-horizontal">
			    <div class="form-group">
			        <label class="col-sm-3 control-label">上级分类：</label>
			        <div class="col-sm-4 input-group">
			        	<select class="form-control" name="pid">
			        		<option value="0">无上级</option>
			        		<volist name='list' id='list'>
			        			<option value="{$list.id}" <eq name='info.pid' value='$list["id"]'>selected</eq>>{:str_pad('', $list['num'] * 18 - 18, '&nbsp;&nbsp;&nbsp;')}|-{$list.name}</option>
			        		</volist>
						</select>
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">分类名称：<span class="c-red">*</span></label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control required" name="name" value="{$info.name}" maxlength="100">
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">分类别名：</label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control" name="subname" value="{$info.subname}" maxlength="100">
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">链接地址：</label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control url" name="link" value="{$info.link}" maxlength="200">
			        </div>
			    </div>
			    <div class="form-group">
			        <label class="col-sm-3 control-label">排序：</label>
			        <div class="col-sm-4 input-group">
			        	<input class="form-control digits" name="sort" value="{$info.sort|default=100}">
			        </div>
			    </div>
			    <div class="form-group">
					<label  class="col-sm-3 control-label">状态：</label>
					<div class="col-sm-4 input-group">
			            <label class="radio-inline">
			                <input type="radio" value="1" name="status" <neq name="info.status" value="0">checked</neq>>启用
			            </label>
			            <label class="radio-inline">
			                <input type="radio" value="0" name="status" <eq name="info.status" value="0">checked</eq>>禁用
			            </label>
		            </div>
		        </div>
		        <div class="form-group">
                    <div class="col-sm-offset-3 col-sm-5">
				        <button class="btn btn-primary" type="submit">保存</button>
				       	<a href="{:U('Classify/index')}"><button class=" btn btn-default" type="button">返回</button></a>
			       	</div>	
		       	</div>
		        <input type='hidden' name='id' value='{$info.id}'>
			</form>
		</div>
	</div>
</div>